mainApp.service('userService', ['$resource',function ($resource){
    //我的基本信息
    this.getUserDetail = function(success, error) {
    	return $resource(baseUrl + "/mapi/muser/detail").get(success, error);
    }
    //修改密码
    this.updateUserPwd = function(oldPwd,newPwd,success, error) {
    	return $resource(baseUrl + "/mapi/muser/updatePwd/:oldPwd/:newPwd",{oldPwd:oldPwd,newPwd:newPwd}).get(success, error);
    }
     
}]);

